<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>登录</title>
    <script>
        {#$.post('/login',#}
        {#    {},#}
        {#    function (data, status) {#}
        {#        obj = JSON.parse(data);#}
        {#        alert(obj.length);#}
        {#    }#}
        {#);#}
    </script>
</head>
<body>
<div style="margin: 0 auto;margin-top: 15%;text-align: center;background: greenyellow;width: 300px;height: 200px">
     <form action="/login" method="post">
        <p>
            <input type="text" name="username" placeholder="用户名">
        </p>
        <p>
            <input type="password" name="password" placeholder="密  码">
        </p>
        <p>
            <span>
                <input type="submit" value="登录" id="ti">
            </span>
            <span>
                <input type="reset" value="清空">
            </span>

        </p>

    </form>
            <span>
                <button onclick="location.href='/reg'">注册新用户</button>
            </span>
</div>

</body>
</html>